package hk.ust.cse.comp3111.studentSchedule;


import java.util.ArrayList;
import java.util.List;


import android.os.Bundle;

import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListView;


public class dbExample extends Fragment {
	
	CourseDatabaseHandler db;

public dbExample(){}
	
	@Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
 
        View rootView = inflater.inflate(R.layout.db_example, container, false);
         
        return rootView;
    }
	
	
	
	@Override
	public void onStart() {
		super.onStart();
		db=new CourseDatabaseHandler(this.getActivity());
		insert();
		
		

	
	
	}
	
	
	void insert(){
		
		
		db.insertClass(1010, "ACCT1010", "L1", "Accounting, Business and Society", "2014-02-07", "Rm 1007, LSK Bldg", 1630, 1750, 1200, 1320, 0, 0, 1, 5, 0, 1, 1);

	}
	
	
	

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}

